Skip to main content
Feedback

Cross reference table example: More than one input and output value

A cross reference table can be used to accept more than one input value and produce more than one output value. The example here shows a cross reference table lookup within a function.

In addition to setting up the function, you need to map all input elements from the source profile to the input values in the function. You also need to map all output values from the function to the output elements in the destination profile.

For example, when referring to the U.S. states:

  • System A uses the State Name value and the Other Code value
System A Field NameExample Input ValueSystem B Field NameSQL SELECT StatementExample Output ValueExplanation
State_NameAlabamaFIPS_Alpha_CodeSELECT FIPS_Alpha_Code FROM State_Cross-Reference_Example WHERE State_Name = Input_ElementALWhen the input State Name in System A is "Alabama", the query returns "AL" as the FIPS Alpha Code in System B.
  • System B uses the FIPS Alpha Code value and the FIPS Numeric Code value
System A Field NameExample Input ValueSystem B Field NameSQL SELECT StatementExample Output ValueExplanation
Other_CodeaFIPS_Numeric_CodeSELECT FIPS_Numeric_Code FROM State_Cross-Reference_Example WHERE Other_Code = Input_Element01When the input Other Code in System A is "a", the query returns "01" as the FIPS Numeric Code in System B.